package com.useeinfo.framework.sugar.data;


public
class ResultVO {
    Integer errorcode;

    String errormsg;

    public ResultVO() {
    }

    public ResultVO(Integer errorcode, String errormsg) {
        this.errorcode = errorcode;
        this.errormsg = errormsg;
    }

    public Integer getErrorcode() {
        return errorcode;
    }

    public void setErrorcode(Integer errorcode) {
        this.errorcode = errorcode;
    }

    public String getErrormsg() {
        return errormsg;
    }

    public void setErrormsg(String errormsg) {
        this.errormsg = errormsg;
    }

    public static ResultVO success() {
        return new ResultVO(200, "ok");
    }

    public static ResultVO success(String errormsg) {
        return new ResultVO(200, errormsg);
    }

    public static ResultVO error(String errormsg) {
        return new ResultVO(500, errormsg);
    }

    public static ResultVO result(Integer errorcode, String errormsg) {
        return new ResultVO(errorcode, errormsg);
    }
}
